package com.mfc.education.service.trade.feign;

import com.mfc.education.service.base.dto.MemberDto;
import com.mfc.education.service.trade.feign.fallback.UcenterMemberServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author mfc
 * @since 2021/10/3
 */
@FeignClient(value = "service-ucenter" ,fallback = UcenterMemberServiceFallback.class)
@Service
public interface UcenterMemberService {
    @GetMapping("/api/ucenter/member/inner/get-member-dto/{memberId}")
    public MemberDto getMemberDtoByMemberId(@PathVariable("memberId") String memberId);
}
